// test.ts

import { MockMethod } from 'vite-plugin-mock'

import { Apis, commonRes } from '../utils/_common'

export default [
  {
    url: `${Apis.HOME}/getData`,
    method: 'get',
    response: ({ query, body }: any) => {
      console.log('body:', body)
      console.log('query:', query)
      return commonRes({
        name: 'vben'
      })
    }
  }
] as MockMethod[]
